from sklearn.datasets import load_iris, fetch_20newsgroups,load_boston
from sklearn.model_selection import train_test_split
import numpy as np
# np.set_printoptions(suppress=True)
# li = load_iris()
li = load_boston()

print('特征值')
print(li.data)
print('目标值')
print(li.target)
# 数据拆分 随机拆分
# X_train, X_test, y_train, y_test = train_test_split(li.data, li.target, test_size=0.25)
#
# print('训练集', X_train)
# print('训练目标值', y_train)
#
# print('测试集', X_test)
# print('测试集目标值', y_test)


# news = fetch_20newsgroups()
#
# print(news.data)
# print(news.target)